package com.chenss.dragonser.adapter;

import android.content.Context;
import android.view.View;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.TextView;

import com.chenss.dragonser.R;
import com.chenss.dragonser.base.BaseAdp;
import com.chenss.dragonser.model.CouponsModel;

import java.util.List;

public class CouponsAdapter extends BaseAdp<CouponsModel.StoreCouponBean> {


	public CouponsAdapter(Context ctx, List<CouponsModel.StoreCouponBean> list) {
		super(ctx, list, R.layout.item_coupons);
	}

	@Override
	public void Convert(final int position, View convertView) {
		// TODO Auto-generated method stub
		TextView tv_name = Get(convertView,R.id.tv_name);
		TextView tv_amount = Get(convertView,R.id.tv_amount);
		TextView tv_time = Get(convertView,R.id.tv_time);
		tv_name.setText( mDataList.get(position).getCoupon_name());
		tv_amount.setText( mDataList.get(position).getDiscount_amount());
		tv_time.setText( mDataList.get(position).getMtime());

	}

}
